﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Webshop20.Domain;
using Webshop20.Domain.Model.Customers;
using Webshop20.Domain.Repositories.Contracts;
using Webshop20.Factories.Contracts;

namespace Webshop20.Repositories.Implementation
{
    public class AccountRepository : IRepository<Account>
    {
        private readonly IAccountFactory accountFactory;
        private readonly ICustomSessionState sessionState; 

        public AccountRepository(IAccountFactory accountFactory)
        {
            this.accountFactory = accountFactory;
        }

        #region IRepository<Account> Members

        public void Add(Account instance)
        {
            throw new NotImplementedException();
        }

        public void Update(Account instance)
        {
            throw new NotImplementedException();
        }

        public void Delete(Account instance)
        {
            throw new NotImplementedException();
        }

        public Account FindById(object id)
        {
            if (id == null)
                return accountFactory.CreateInstance(null, null, null, null, null, null, null);


            throw new NotImplementedException();
        }

        public IEnumerable<Account> FindAll()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
